


$(function(){
    checkCustomize = function(){
        if($("#field8147").val()==undefined&&$("#field8225").val()==undefined){
            alert("道路名称和小区名称必选一！");
            return false;
        }
        return true;
    }

    $("#field8144,#field8147,#field8225").bindPropertyChange(function(){
        var field8144span =  $("#field8144span .e8_showNameClass a").html();
        var field8147span =  $("#field8147span .e8_showNameClass a").html();
        var field8225span = $("#field8225span .e8_showNameClass a").html();
        var html;
        if(field8144span!=undefined)html=html+"-"+field8144span;
        if(field8147span!=undefined)html=html+"-"+field8147span;
        if(field8225span!=undefined)html=html+"-"+field8225span;
        $("#field8122").val(html);

    });
    $("#field8147").bindPropertyChange(function(){
        var field8144span =  $("#field8144span .e8_showNameClass a").html();
        var field8147span =  $("#field8147span .e8_showNameClass a").html();
        var field8225span = $("#field8225span .e8_showNameClass a").html();
        var html;
        if(field8144span!=undefined)html=html+"-"+field8144span;
        if(field8147span!=undefined)html=html+"-"+field8147span;
        if(field8225span!=undefined)html=html+"-"+field8225span;
        $("#field8122").val(html);

    });
    $("#field8225").bindPropertyChange(function(){
        var field8144span =  $("#field8144span .e8_showNameClass a").html();
        var field8147span =  $("#field8147span .e8_showNameClass a").html();
        var field8225span = $("#field8225span .e8_showNameClass a").html();
        var html;
        if(field8144span!=undefined)html=html+"-"+field8144span;
        if(field8147span!=undefined)html=html+"-"+field8147span;
        if(field8225span!=undefined)html=html+"-"+field8225span;
        $("#field8122").val(html);

    });

});





<!-- script代码，如果需要引用js文件，请使用与HTML中相同的方式。 -->
<script type="text/javascript">
$(function(){

    $("#field8144").bindPropertyChange(function(){
        var html =$("#field8144span .e8_showNameClass a").html()+$("#field8147span .e8_showNameClass a").html()+$("#field8225span .e8_showNameClass a").html();
        $("#field8122").val(html)

    });
     $("#field8147").bindPropertyChange(function(){
        var html =$("#field8144span .e8_showNameClass a").html()+$("#field8147span .e8_showNameClass a").html()+$("#field8225span .e8_showNameClass a").html();
        $("#field8122").val(html)

    });
     $("#field8225").bindPropertyChange(function(){
        var html =$("#field8144span .e8_showNameClass a").html()+$("#field8147span .e8_showNameClass a").html()+$("#field8225span .e8_showNameClass a").html();
        $("#field8122").val(html)

    });

});
</script>



/**
 * 2017-06-30 王杰
 * 道路名称和小区名称必选一
 * 自动带出位置说明
 */
<script type="text/javascript">
checkCustomize = function(){
    if($("#field8147").val()==undefined&&$("#field8225").val()==undefined){
        alert("道路名称和小区名称必选一！");
        return false;
    }
    return true;
}
$(function() {
    $("#field8144,#field8147,#field8225").bindPropertyChange(function(){
        var field8144span =  $("#field8144span .e8_showNameClass a").html();
        var field8147span =  $("#field8147span .e8_showNameClass a").html();
        var field8225span = $("#field8225span .e8_showNameClass a").html();
        var html = "";
        if(field8144span!=undefined)html=html+field8144span;
        if(field8147span!=undefined)html=html+"-"+field8147span;
        if(field8225span!=undefined)html=html+"-"+field8225span;
        $("#field8122").val(html);

    });
});
</script>












/**
 * 2017-06-30 王杰
 * 道路名称和小区名称必选一
 * 自动带出位置说明
 */
<script type="text/javascript">
$(function() {

    $("#field8144,#field8147,#field8225").bindPropertyChange(function(){
        var field8144span =  $("#field8144span .e8_showNameClass a").html();
        var field8147span =  $("#field8147span .e8_showNameClass a").html();
        var field8225span = $("#field8225span .e8_showNameClass a").html();
        var html = "";
        if(field8144span!=undefined)html=html+field8144span;
        if(field8147span!=undefined)html=html+"-"+field8147span;
        if(field8225span!=undefined)html=html+"-"+field8225span;
        $("#field8122").val(html);

    });
});
checkCustomize = function(){
    if((($("#field8147").val()==undefined)&&($("#field8225").val()==undefined))){
        alert("道路名称和小区名称必选一！");
        return false;
    }
    {/*var variable1 = $("#field8147").val();
    var variable2 = $("#field8225").val();
    if ((variable1 !== null || variable1 !== undefined || variable1 !== '')&&(variable2 !== null || variable2 !== undefined || variable2 !== '')) { 
        alert("道路名称和小区名称必选一！");
        return false;
    } */}
    return true;
}
</script>




